<?
 session_start();
 if (@$_SESSION['client']==0) { header('Location: /login.php');};
 
 @$id = $_GET["id"];
 if (@$id == null) {$id = "A";}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>openOli | Problems</title>
<link rel="icon" href="img/favicon.png" type="image/png" />
<link href="css/yahoo_reset.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/problems.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
         $('#problem').load("problem.php?id=<? echo $id; ?>");
         setInterval(function(){$("#timebox").load("time.php");}, 30000);
        })
</script>
</head>

<body>
  <!-- openOli::Contest | Turan Rustamli -->
  <div id="page">
  
    <div id="hdtext">
	   <div id="hdt_l">open source web based judge for holding olympiads in informatics</div>
	   <div id="hdt_r">English &nbsp; <img src="img/ico_mail.gif" alt="openOli" border="0"> &nbsp; <img src="img/ico_home.gif" alt="openOli" border="0"></div>
	</div>
    
	<div id="header">
	   <div id="logo"><a href="dashboard.php"><img src="img/logo.jpg" alt="openOli" border="0"></a></div>
	   <div id="topmenu">
	        <a class="foxbtn" href="dashboard.php"><span>Dashboard</span></a>
	        <a class="foxbtn_x" href="problems.php"><span>Problems</span></a>
            <a class="foxbtn" href="submit.php"><span>Submit</span></a>
            <a class="foxbtn" href="test.php"><span>Test</span></a>
            <a class="foxbtn" href="archive.php"><span>History</span></a>
            <a class="foxbtn" href="help.php"><span>Help</span></a>
            <a class="foxbtn" href="logout.php"><span>Log out</span></a>
	   </div> 	    
	   <div id="toolbox">		  
		  <div id="timebox">
	          <? include('time.php'); ?>
		  </div>
		</div> 	    
	</div>
	
	<div id="content">
	   <table width="100%" border="0" cellspacing="2">
		<tr>
			<td id=problem>		
			</td>
			<td id="sidebar">
			   <p class="p_title">Problemset</p>
			   <ul class="probox">
				     <li><b>A.</b> <a href="#" onclick="$('#problem').load('/problem.php?id=A')">Odd numbers</a></li>
                     <li><b>B.</b> <a href="#" onclick="$('#problem').load('/problem.php?id=B')">Chipher Grille</a></li>
                     <li><b>C.</b> <a href="#" onclick="$('#problem').load('/problem.php?id=C')">K-based numbers</a></li>
                     <li><b>D.</b> <a href="#" onclick="$('#problem').load('/problem.php?id=D')">A strange procedure</a></li>
                     <li><b>E.</b> <a href="#" onclick="$('#problem').load('/problem.php?id=E')">Rope</a></li>
               </ul>
			  </td>
		</tr>
       </table>
	</div>	
	
	<div id="bottom"><span id="b_left">&copy; Turan Rustamli - You may use openOli under the terms of the MIT License.</div></div>	
	<br />
  </div>
</body>
</html>
